import java.util.Scanner;

public class demo2 {
    public static void main(String[] args) {
        int[] arry1=new int[5];
        Scanner sc=new Scanner(System.in);
        for(int i=0;i<5;i++){
            arry1[i]=sc.nextInt();
        }
        for(int i=0;i<5;i++){
            for(int j=0;j<5-i-1;j++){
                if(arry1[j+1]>arry1[j]){
                    int temp=0;
                    temp=arry1[j];
                    arry1[j]=arry1[j+1];
                    arry1[j+1]=temp;
                }
            }
        }
        for(int i=0;i<5;i++){
            System.out.println(arry1[i]);
        }
    }
}
